* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.add-friend-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    padding: 20px;
}

.add-friend-container {
    width: 100%;
    /*max-width: 500px;*/
    /*background: rgba(255, 255, 255, 0.15);*/
    /*backdrop-filter: blur(10px);*/
    /*border-radius: 15px;*/
    /*padding: 30px;*/
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);*/
    /*border: 1px solid rgba(255, 255, 255, 0.2);*/
    /*text-align: center;*/
}

.add-friend-header {
    margin-bottom: 25px;
}

.add-friend-header h1 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.add-friend-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
}

.add-friend-btn {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1px;
}

.add-friend-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.add-friend-btn i {
    margin-right: 10px;
}

/* 弹窗样式 */
.add-friend-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.add-friend-modal.active {
    display: flex;
    animation: add-friend-fadeIn 0.3s ease;
}

@keyframes add-friend-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.add-friend-modal-content {
    background-color: #1e1e1e;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
    animation: add-friend-scaleIn 0.3s ease forwards;
}

@keyframes add-friend-scaleIn {
    to { transform: scale(1); }
}

.add-friend-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.add-friend-modal-title {
    font-size: 22px;
    font-weight: 600;
    color: white;
}

.add-friend-close-modal {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
}

.add-friend-close-modal:hover {
    color: white;
}

.add-friend-form-group {
    margin-bottom: 20px;
}

.add-friend-form-label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.add-friend-form-input {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.add-friend-form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.15);
}

.add-friend-form-textarea {
    width: 100%;
    height: 120px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    resize: vertical;
}

.add-friend-form-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.15);
}

.add-friend-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, rgba(247, 37, 133, 0), rgba(114, 9, 183, 0));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-friend-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.add-friend-success-message {
    display: none;
    text-align: center;
    padding: 20px;
    color: #4cd137;
    font-size: 18px;
    font-weight: 500;
}

.add-friend-success-message i {
    font-size: 24px;
    margin-right: 10px;
}

/* 响应式调整 */
@media (max-width: 600px) {
    .add-friend-container {
        padding: 20px;
    }

    .add-friend-header h1 {
        font-size: 1.8rem;
    }

    .add-friend-modal-content {
        padding: 20px;
    }
}
